package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.ProductRepurchaseRateMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.ProductRepurchaseRate;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.ProductRepurchaseRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductRepurchaseRateServiceImpl implements ProductRepurchaseRateService {
    @Autowired
    private ProductRepurchaseRateMapper productRepurchaseRateMapper;

    @Override
    public List<ProductRepurchaseRate> selectAll() {
        return productRepurchaseRateMapper.selectAll();
    }

    @Override
    public int insert(ProductRepurchaseRate productRepurchaseRate) {
        return productRepurchaseRateMapper.insert(productRepurchaseRate);
    }
}
